/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 30318
 * Date: 2023-10-17
 * Time: 16:55
 */
public class GravityCalculator {
    public static void main(String[] arguments){
        double g =9.81; // 加速度 (m/s2)
        double t = 10; // 时间 (s)
        double vi = 0; // 初速度 (m/s)
        double xi = 0.0; // 初始位置
        double x = 0.5 * g*t*t + vi*t + xi;
        System.out.println("The object's position after " + t +" seconds is " + x + " m.");
    }
}
